package com.kmxd.ams.client.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 全宗
 *
 * @author ZuoLG
 * @since 2022-07-14
 */
@Data
@Schema(description = "全宗对象")
public class SysFondsVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  @Schema(description = "编码 即全宗号，非空、不可重复且全局唯一")
  private String code;

  @Schema(description = "全宗类型 默认0 : 代管全宗，1：默认全宗")
  private Long type;

  @Schema(description = "名称 非空")
  private String name;

  @Schema(description = "公司ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long comId;

  @Schema(description = "备注")
  private String remarks;

  @Schema(description = "排序")
  @JsonSerialize(using = ToStringSerializer.class)
  private Integer sort;

  /** 数据库自增值，每个单位从1开始，每加一个库自动加1 */
  @JsonSerialize(using = ToStringSerializer.class)
  private Integer autoIndex;

  @Schema(description = "创建人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createBy;

  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @Schema(description = "更新人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateBy;

  @Schema(description = "更新时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;
}
